'''
使用一个指针 用于从头开始扫描
判断 bits[i] 等于 0 还是 1
'''
def isOneBitCharacter(self, bits):
    i = 0 
    n = len(bits)
    
    ## 遍历整个数组
    while i < n -1 :
        if bits[i]  == 0:
             i += 1
        else:
            i += 2
    
    return i == n-1
            
